package sdp.group14.appdata;

public class Event {
	
	@Override
	public String toString() {
		return "Event [eventID=" + eventID + ", entryID=" + entryID
				+ ", allowStaffEnter=" + allowStaffEnter + ", statusID="
				+ statusID + ", categoryID=" + categoryID + ", description="
				+ description + ", cause=" + cause + ", comments=" + comments
				+ ", eventDate=" + eventDate + ", dayModified=" + dayModified
				+ ", dayCreated=" + dayCreated + "]";
	}

	private int eventID, entryID, allowStaffEnter, statusID, categoryID;
	private String status, category,description, cause, comments, eventDate, dayModified, dayCreated;
	
	
	public int getStatusID() {
		return statusID;
	}
	public void setStatusID(int statusID) {
		this.statusID = statusID;
	}
	
	public int getCategoryID() {
		return categoryID;
	}
	public void setCategoryID(int categoryID) {
		this.categoryID = categoryID;
	}
	
	public int getEventID() {
		return eventID;
	}
	public void setEventID(int eventID) {
		this.eventID = eventID;
	}
	
	public int getEntryID() {
		return entryID;
	}
	public void setEntryID(int entryID) {
		this.entryID = entryID;
	}
	public int getAllowStaffEnter() {
		return allowStaffEnter;
	}
	public void setAllowStaffEnter(int allowStaffEnter) {
		this.allowStaffEnter = allowStaffEnter;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCause() {
		return cause;
	}
	public void setCause(String cause) {
		this.cause = cause;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getEventDate() {
		return eventDate;
	}
	public void setEventDate(String eventDate) {
		this.eventDate = eventDate;
	}
	public String getDayModified() {
		return dayModified;
	}
	public void setDayModified(String dayModified) {
		this.dayModified = dayModified;
	}
	public String getDayCreated() {
		return dayCreated;
	}
	public void setDayCreated(String dayCreated) {
		this.dayCreated = dayCreated;
	}
	
	//this constructure use status and categoryI to read event data from server
	public Event(int entryID, int allowStaffEnter, String status,
			String category, String description, String cause, String comments,
			String eventDate, String dayModified, String dayCreated) {
		super();
		this.entryID = entryID;
		this.allowStaffEnter = allowStaffEnter;
		this.status = status;
		this.category = category;
		this.description = description;
		this.cause = cause;
		this.comments = comments;
		this.eventDate = eventDate;
		this.dayModified = dayModified;
		this.dayCreated = dayCreated;
	}
	
	//this constructure use statusID and categoryID to insert new event to server
	public Event(int entryID, int allowStaffEnter, int statusID,
			int categoryID, String description, String cause, String comments,
			String eventDate, String dayModified, String dayCreated) {
		super();
		this.entryID = entryID;
		this.allowStaffEnter = allowStaffEnter;
		this.statusID = statusID;
		this.categoryID = categoryID;
		this.description = description;
		this.cause = cause;
		this.comments = comments;
		this.eventDate = eventDate;
		this.dayModified = dayModified;
		this.dayCreated = dayCreated;
	}


}
